package com.wujilee.wujileenetty.demos.web.netty.heima;

import io.netty.channel.EventLoop;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.util.concurrent.Future;
import io.netty.util.internal.SystemPropertyUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author liwuji
 * @date 2024/8/7
 * @desc
 **/
@Slf4j
public class TestNIoEventLoopGroup {
    public static void main(String[] args) {

        NioEventLoopGroup eventExecutors = new NioEventLoopGroup(3); // io 普通任务 定时任务
        EventLoop next = eventExecutors.next();
        Future<?> helloWorld = next.submit(() -> {
            log.debug("hello world");
        });
        next.execute(()->{
            log.debug("hello world1");
        });

    }
}
